package gg.learn.innerclass;
/**
 * If you want to make an object of the inner class anywhere except from within a non-static method of the outer class, you must specify the type of that object as OuterClassName.InnerClassName, as seen in main( ).
 */

public class Outer {
    public Inter getInter(){
        return new Inter();
    }
    class Inter {}  
    public static void main(String[] args) {
        Outer outer = new Outer();
        Inter inter = outer.getInter();
    }
}
